
<?php require_once("../cecndb.php"); ?>
<!doctype html>
<html lang="es">
<head>
	<meta charset="UTF-8">
	<title>Boletas</title>
</head>
<body>
	<section>
		<form name="formreg" method="POST" action="./insert.php">
			<ul>
				<h1>Registro de boletas</h1>
				<label for="txt_fec">Fecha</label>
				<input type="date" name="txt_fecha" id="txt_fecha"></br></br>
                      
				<label for="txt_nudo">Nombre de acádemico</label>
				<select name="txt_aca" id="txt_aca">
					<option value="0">Seleccione un academico.</option>
					<?php
					$sql=$conectarBD->query("SELECT * FROM gs01regaca ORDER BY GS01NOAC");
					?>
					<?php while ($row =$sql->fetch_assoc()){ ?>
					<option value="<?php echo $row['GS01COAC']; ?>"><?php echo $row['GS01NOAC']; ?></option>
					<?php }
 	  				  mysqli_free_result($sql);

					 ?>
				</select></br></br>

			<label for="txt_nudo">Nombre de curso</label>
				<select name="txt_cur" id="txt_cur">
					<option value="0">Seleccione un curso.</option>
					<?php
					$sql=$conectarBD->query("SELECT * FROM gs03catpro ORDER BY GS03NOPR");
					?>
					<?php while ($row =$sql->fetch_assoc()){ ?>
					<option value="<?php echo $row['GS03COPR']; ?>"><?php echo $row['GS03NOPR']; ?></option>
					<?php }
 	  				  mysqli_free_result($sql);

					 ?>
				</select></br></br>
				

			<label for="txt_docu">Tipo documento</label>
				<select name="txt_docu" id="txt_docu">
					<option value="0">Seleccione un tipo.</option>
					<?php
					$sql=$conectarBD->query("SELECT * FROM gs02cattip ORDER BY GS02DETPO");
					?>
					<?php while ($row =$sql->fetch_assoc()){ ?>
					<option value="<?php echo $row['GS02COTP']; ?>"><?php echo $row['GS02DETPO']; ?></option>
					<?php }
 	  				  mysqli_free_result($sql);

					 ?>
				</select></br></br>				
				<label for="txt_cant">Cantidad</label>
				<input id="txt_cant" name="txt_cant" type="text" maxlength="4"></br></br>

				<input type="submit" value="Aceptar" id="btn_acp" >
				<input type="reset" value="Limpiar" id="btn_lim">

				<div id="doc"></div>
				
			</ul>
		</form>
	</section>
</body>
</html>
